import { ObjectId } from "mongodb";
import { BaseRequest, BaseResponse, BaseConf } from "../base";
import { users } from "../../types/user";

export interface ReqGetEInfo extends BaseRequest {
  course: ObjectId;
  requiredExp: ObjectId[];
}

export interface ResGetEInfo extends BaseResponse {
  info: info[];
  students: safeStu[];
}

export interface info {
  name: string;
  userExperiments: {
    student: ObjectId;
    score: number;
  }[];
}

export type safeStu = Pick<users, "_id" | "name" | "number">;

export const conf: BaseConf = {};
